package com.west_traveler.tiyutoutiao.interfacess;

import com.west_traveler.tiyutoutiao.entity.game_entity.GameEntity;
import com.west_traveler.tiyutoutiao.entity.head_line_dynamic_entity.DynamicOutsideData;
import com.west_traveler.tiyutoutiao.entity.head_line_entity.HeadLine;
import com.west_traveler.tiyutoutiao.entity.recommend_entity.Recommend;
import com.west_traveler.tiyutoutiao.entity.title_entity.Title;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

/**
 * Description:
 * created at 2016/12/17 16:03
 *
 * @author: 黄昌友
 */

public interface HttpService {
    @GET("http://api.lifxapi.com/tiyu/rest/channel/list?version=0&machine_code=865682026799303&client=key%3ATiyuForAndroid&version=2.11&format=json&app_id=4&is_emulator=false")
    Call<Title> getTitle();

//    @GET("http://api.lifxapi.com/tiyu/rest/content/list?channel_id=0&contest_flag=true&data_version=397.3&banner_flag=true&machine_code=865682026799303&client=key%3ATiyuForAndroid&version=2.11&format=json&app_id=4&is_emulator=false")
//    Call<Recommend> getData();

    @GET("tiyu/rest/content/list")
    Call<Recommend> getData(@Query("channel_id") int channel_id, @Query("contest_flag") boolean contest_flag, @Query("data_version") double data_version, @Query("banner_flag") String banner_flag);

//    @GET("http://api.lifxapi.com/tiyu/rest/content/list?channel_id=0&contest_flag=true&data_version=397.3&banner_flag=true&machine_code=865682026799303&client=key%3ATiyuForAndroid&version=2.11&format=json&app_id=4&is_emulator=false")
//    Call<Recommend> getData();

    @GET("http://api.lifxapi.com/tiyu/rest/contest/time/channel?next_flag=false&machine_code=133524277591201&client=key%3ATiyuForAndroid&version=2.11&format=json&app_id=4&is_emulator=false")
    Call<GameEntity> getGameData();


    //获取头条数据
    //http://api.lifxapi.com/tiyu/rest/content/head?limit=20&machine_code=867030029193322&client=key%3ATiyuForAndroid&version=2.11&format=json&app_id=4&is_emulator=true
    @GET("tiyu/rest/content/head?limit=20&machine_code=867030029193322&client=key%3ATiyuForAndroid&version=2.11&format=json&app_id=4&is_emulator=true")
   Call<HeadLine> getHeadLineData();

    //头条 动态数据
//http://api.lifxapi.com/tiyu/rest/snapshot/list?start_id=9223372036854775807&limit=20&machine_code=867030029193322&client=key%3ATiyuForAndroid&version=2.11&format=json&app_id=4&is_emulator=true
   @GET("tiyu/rest/snapshot/list?start_id=9223372036854775807&limit=20&machine_code=867030029193322&client=key%3ATiyuForAndroid&version=2.11&format=json&app_id=4&is_emulator=true")
    Call<DynamicOutsideData> getDynamicData();
}
